package com.example.shiwu.util;

import android.content.Context;
import android.graphics.Color;

import com.alibaba.fastjson2.JSONReader;
import com.zyao89.view.zloading.ZLoadingDialog;
import com.zyao89.view.zloading.Z_TYPE;

public class ZloadingUtil {
    public static ZLoadingDialog dialog;
    public static void openZloading(Context myContext){
        dialog = new ZLoadingDialog(myContext);
        dialog.setLoadingBuilder(Z_TYPE.DOUBLE_CIRCLE)//设置类型
                .setLoadingColor(Color.BLUE)//颜色
                .setHintText("读取中.")
                .setCanceledOnTouchOutside(false)
                .show();
    }
    public static void closeZloading(Context myContext){
        dialog.cancel();
    }
}
